package com.jbit.dm_160.service.impl;

import com.jbit.dm_160.mapper.ItemCommentMapper;
import com.jbit.dm_160.model.entity.ItemComment;
import com.jbit.dm_160.service.ItemCommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ItemCommentServiceImpl implements ItemCommentService {
    @Resource
    private ItemCommentMapper itemCommentMapper;
    @Override
    public List<ItemComment> getItemCommentByItemId(Integer itemId) {
        return itemCommentMapper.getItemCommentByItemId(itemId);
    }

    @Override
    public Integer addItemComment(ItemComment itemComment) {
        return itemCommentMapper.addItemComment(itemComment);
    }
}
